


<!-- [Left menu] start -->
<div class="leftmenu">

	<h1 id="pageinfo">Quick Launch</h1>
	
	<ul id="tabs" class="quickmenu">
		<li><a href="#one">RFQ Details</a></li>
		<li><a href="#three">Notes</a></li>
		<li><a href="<?=site_url('rfq/import')?>">Import</a></li>
	</ul>
	<div class="quickend"></div>

</div>
<!-- [Left menu] end -->

<!-- [Content] start -->
<div class="content slim">

<script type="text/javascript">
function change_parent() {
	selected = document.getElementById('parent').selectedIndex;
	document.getElementById('pre_uri').innerHTML = '/'+document.getElementById('parent').options[selected].value;
}
</script>

<h1 id="edit">Create New Request For Quote</h1>
	
<form  action="<?=site_url('rfq/create')?>" method="post" accept-charset="utf-8">
 	

	
		<br class="clearfloat" />

		<hr />

		<?php if ($notice = $this->session->flashdata('notification')):?>
		<p class="notice"><?=$notice;?></p>
		<?php endif;?>


						

<div id="container">
<!-- Begin [RFQ Header]  -->

<form  enctype="multipart/form-data" method="post" action="">
	<div class="info">
		<h2>RFQ Information</h2>
	</div>

		<ul>
			<div class="header">
			<li id="quote_details" class="   " >
			
				<label class="desc" id="title0" for="Field0">Quote Reference Number</label>

				<input id="company_name" name="company_name" class="field text" size="50" tabindex="1" value=""  />
			

				<label class="desc" id="title2" for="Field2">Details</label>

			<div class="left">
				<label for="rfq_id">RFQ ID</label>
				<input id="rfq_id" name="rfq_id" class="field text full addr" type="text" tabindex="6" value=""  />
				
		
			</div>
			<div class="right">
				<label for="rfq_status">Status</label>
				<input id="rfq_status" name="rfq_status" class="field text full addr" type="text" tabindex="6" value=""  />
				
			</div>	
			<div class="left">
				<label for="rfq_description">RFQ Description</label>
				<input id="rfq_description" name="rfq_description" class="field text full addr" type="text" tabindex="6" value=""  />
				
			</div>
			<div class="right">
				<label for="rfq_buyer">Buyer</label>
				<input id="rfq_buyer" name="rfq_buyer" class="field text full addr" type="text" tabindex="6" value=""  />
				
			</div>	
			<div class="left">
				<label for="rfq_date">RFQ Date</label>
				
				<input id="date1"  name="date1"/>
   <script type="text/javascript">
    /*<[CDATA[*/
     var dpck	= new DatePicker({
      relative	: 'date1',
      language	: 'en'
      });
    /*]]>*/
    </script>
					
			</div>


			<div class="right">
				<label for="required_by">Required By Date</label>
								
				<input id="date2" class="date-pick dp-applied" name="date2"/>
				
			</div>
			<div class="left">
				<select class="field select full addr" id="quote_purpose" name="quote_purpose" tabindex="8" > 
					<option value="" selected="selected"></option>
				</select>
				
			</div>
			<div class="right">
				<select class="field select full addr" id="quote_type" name="quote_type" tabindex="8" > 
					<option value="" selected="selected"></option>
				</select>
				<label for="quote_type">Quote Type</label>
			</div>

			<div>
				<input id="quote_notes" name="quote_notes" class="field text full addr" type="text" tabindex="3" value=""  />
				<!--<textarea rows="3" cols="80" name="quote_notes"/></textarea>-->
				<label for="quote_notes">Notes</label>
			</div>
			</div>
			
			</li>
<!-- End [RFQ header] -->
<!-- Begin [Recipient Block] -->
			<div id="recipient_block">
				<li id="recipients_10" class="   " >
					<div>
						<label class="desc" id="title2" for="Field2">Recipients</label>

							<table width="100%">
								
								<thead>
									<tr>
										<td>
											Company Name/Group	
										</td>
										<td>	
											Email
										</td>
									</tr>
								
								</thead>
								<tbody>
								
									<tr>
										<td>
											
											<input id="company_group_name" name="company_group_name" class="field text full addr" type="text" maxlength="15" tabindex="7" value=""  />
											
												
										</td>
										<td>
											
											<input id="company_group_email" name="company_group_email" class="field text full addr" type="text" maxlength="15" tabindex="7" value=""  />
											
												
										</td>
									</tr>
								</tbody>
								
							</table>

		
					</div>


			<p id="new_contact" class="button" style="display: block;">

			<a href="#">Add</a>
			</p>


					
	

				</li>
			</div>
<!-- End [Recipient Block] -->
<!-- Begin [Item List] -->
<li>
<label class="desc" id="title2" for="Field2">RFQ Lines</label>
	<div id="item_block">
		<table border="0">
				<thead>
					<tr>
						<th nowrap colspan="4" width=""></th>
						<th nowrap colspan="4" width="">Internal Use Only</th>
					</tr>
					<tr>
						<th nowrap width="5%">Type</th>
						<th nowrap width="45%">item</th>
						<th nowrap width="10%">Qty</th>
						<th nowrap width="8%">Unit</th>
						<th nowrap width="8%">Price</th>
						<th nowrap width="6%">Cur</th>
						<th width="13%">Lead Time (in days)</th>
						<th nowrap width="5%">Del</th>
					</tr>
						
				</thead>
					<tbody id="item_area">
					<tr class="item_row">
						<td><input id="item_type" type="text" name="item_type" value="" size="4" maxlength="5"  />
						</td>
						<td><input id="item_number" type="text" name="part_number" value="" size="40" maxlength="100"  />
						</td>
						<td><input id="item_qty" type="text" name="item_qty" value="" size="8" maxlength="9"  />
						</td>
						<td><input id="item_uom" type="text" name="item_uom" value="" size="4" maxlength="5"  />
						</td>
						<td><input id="item_price" type="text" name="item_price" value="" size="7" maxlength="5"  />
						</td>
						<td><input id="item_currency" type="text" name="item_currency" value="" size="4" maxlength="5"  />
						</td>
						<td><input id="item_lead_time" type="text" name="item_lead_time" value="" size="5" maxlength="5"  />
						</td>
						<td>
						</td>
				</tr>
				<tr class="item_note">
					<td colspan="4">
					<label for="item_notes">Notes</label>
					<input id="item_notes" name="item_notes" class="field text full addr" type="text" tabindex="30" value=""  />
					<!--<textarea rows="3" cols="80" name="quote_notes"/></textarea>-->
					
					</td>
					
				</tr>
					</tbody>
		</table>
<!-- End [Item List] -->
	<p class="button" style="display:block;" id="new_item"><a href="#" onclick="return create_itemized_fields();" class="clientnew"><img src="<?php echo base_url();?>img/add_row.png" style="margin-bottom:-3px;" alt="" /> New Item</a></p>

	</div>
</li>			

<!-- Save for separate Notes tab 	
<li class="   " id="fo69li11" >
	
	<label id="title11" class="desc" for="notes">Notes</label>
	
	<div>
			<textarea id="notes" class="field textarea medium" name="notes" rows="10" cols="50" tabindex="20"  ></textarea>
	</div>
	
		
		
	</li> -->	
		<!--<li class="buttons">
			<input id="saveForm" class="btTxt" type="submit" tabindex="21" value="Submit" />
			<input id="cancelForm" class="canbtTxt" type="submit" tabindex="22" value="Cancel" />
		</li>-->
			<p id="save_rfq" class="button" style="display: block;">

			<a href="rfq/create">Save</a>
			</p>
			<p id="submit_rfq" class="button" style="display: block;">

			<a href="rfq/create">Submit To Vendors</a>
			</p>

</ul>
</form>

</div><!--container-->
<img id="bottom" src="<?php echo base_url()?>img/bottom.png" alt="" />

<!-- End Testing forms -->

</form>
<script>
	var tabs = new Control.Tabs('tabs',{
		defaultTab: 'last'
	})
	tabs.setActiveTab('one');
</script>

</div>



